﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListProgramme.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ListProgramme" %>

        <div class="bgManager">
            <div class="TitleManarer">
                List Programme
            </div>
            <div class="sortList">
                <span>
                    <asp:LinkButton runat="server" ID="All" Text="All"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbt09" Text="0-9"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtA" Text="A B C D E"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtF" Text="F G H I J"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtK" Text="K L M N"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtO" Text="O P Q R"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtS" Text="S T U V"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtW" Text="W X Y Z"></asp:LinkButton>
                </span>
            </div>
            <div style="width: 28%; height: 25px; float: right">
                <asp:Button CssClass="button" runat="server" ID="cmdCreate" Text="Create" OnClick="Create_Click" />
                <asp:CheckBox runat="server" ID="Inactive" Text="Include In-Active" AutoPostBack="true" />
            </div>
            <div class="spaceManager">
            </div>
            <div class="contentGrid">
                <div class="hearderGrid">
                    <div class="ProgrammeHeaderCol2">
                        <asp:LinkButton runat="server" ID="lbtProgrammeName" Text="Name"></asp:LinkButton></div>
                    <div class="ProgrammeHeaderCol3">
                        Description</div>
                    <div class="ProgrammeHeaderCol4">
                        Active
                    </div>
                    <div class="ProgrammeHeaderCol1">
                    </div>
                </div>
                <asp:Repeater ID="Repeater1" runat="server" 
                    OnItemDataBound="Repeater1_ItemDataBound" onitemcommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <div class="rowGrid">
                            <div class="ProgrammeContentCol2">
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("ProgrammeName") %>'></asp:Label>
                            </div>
                            <div class="ProgrammeContentCol3">
                                <%#Eval("Description") %></div>
                            <div class="ProgrammeContentCol4">
                                <asp:Label runat="server" ID="lblActive" Text='<%#Eval("Active") %>'></asp:Label>
                            </div>
                            <div class="ProgrammeContentCol1">
                                <center>
                                    <asp:LinkButton runat="server" ID="lbtEdit"  CommandArgument='<%#Eval("ProgrammeID") %>'
                                        CommandName="EditProgramme">
                              <img width="24px" height="24px" border="0px"  src="../../Resources/Images/edit-icon.png"/>
                                    </asp:LinkButton>
                                </center>
                            </div>
                        </div>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <div class="alterRowGrid">
                            <div class="ProgrammeContentCol2">
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("ProgrammeName") %>'></asp:Label>
                            </div>
                            <div class="ProgrammeContentCol3">
                                <%#Eval("Description") %></div>
                            <div class="ProgrammeContentCol4">
                                <asp:Label runat="server" ID="lblActive" Text='<%#Eval("Active") %>'></asp:Label></div>
                            <div class="ProgrammeContentCol1">
                                <center>
                                    <asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%#Eval("ProgrammeID") %>'
                                        CommandName="EditProgramme">
                              <img width="20px" height="20px" border="0px"  src="../../Resources/Images/edit-icon.png"/>
                                    </asp:LinkButton>
                                </center>
                            </div>
                        </div>
                    </AlternatingItemTemplate>
                </asp:Repeater>
                <div class="PagingList">
                    <span>
                        <asp:Button runat="server" CssClass="backAllList" ID="cmdFisrt" OnClick="Fisrt_Click1" />
                    </span><span>
                        <asp:Button runat="server" CssClass="backList" ID="cmdBack" OnClick="Back_Click1" /></span>
                    <span style="padding-left: 5px;">Page</span> <span style="padding-left: 5px;">
                        <asp:TextBox Text="1" runat="server" Width="20px" ID="txtPageNumber"></asp:TextBox></span>
                    <span>of</span> <span>
                        <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                            <asp:Button runat="server" CssClass="nextAll" ID="cmdNext" OnClick="Next_Click1" />
                        </span><span>
                            <asp:Button runat="server" CssClass="nextList" ID="cmdLast" OnClick="Last_Click1" />
                        </span>
                </div>
            </div>
            <div class="spaceManager"></div>
        </div>
 
